
public class MainClass {

	public static void main (String arg[]) {
		
		Singleton singleton = Singleton.getInstance();
		System.out.println(singleton);
		
		Singleton singleton2 = Singleton.getInstance();
		System.out.println("Singleton1 reference = " + singleton);
		System.out.println("Singleton2 reference = " + singleton2);
		System.out.println(singleton == singleton2);
		System.out.println(singleton.equals(singleton2));
	}
}

